package com.building.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
@author yinjiahui
@create 2021-04-11 17:11
*/
@ApiModel(value="com-building-entity-ShoppingOrder")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "material_shopping_order")
public class ShoppingOrder implements Serializable {
    /**
     * 订单id     YJH
     */
    @TableId(value = "shopping_order_id", type = IdType.INPUT)
    @ApiModelProperty(value="订单id     YJH",required = false,dataType = "Integer")
    private Integer shoppingOrderId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value="用户id",required = false,dataType = "Integer")
    private Integer userId;

    /**
     * 订单类型（0 普通（可以选择工地） 1合同 （不能选择工地））
     */
    @TableField(value = "shopping_order_type")
    @ApiModelProperty(value="订单类型（0 普通（可以选择工地） 1合同 （不能选择工地））",required = false,dataType = "Integer")
    private Integer shoppingOrderType;

    /**
     * 购物车订单支付状态（0未支付    1已支付）
     */
    @TableField(value = "shopping_order_payment_status")
    @ApiModelProperty(value="购物车订单支付状态（0未支付    1已支付）",required = false,dataType = "Integer")
    private Integer shoppingOrderPaymentStatus;

    /**
     * 所选工地名称
     */
    @TableField(value = "shopping_order_construction_site_name")
    @ApiModelProperty(value="所选工地名称",required = false,dataType = "String")
    private String shoppingOrderConstructionSiteName;

    /**
     * 货物详情货物名称
     */
    @TableField(value = "shopping_order_cargo_details_name")
    @ApiModelProperty(value="货物详情货物名称",required = false,dataType = "String")
    private String shoppingOrderCargoDetailsName;

    /**
     * 货物详情型号
     */
    @TableField(value = "shopping_order_cargo_details_model")
    @ApiModelProperty(value="货物详情型号",required = false,dataType = "String")
    private String shoppingOrderCargoDetailsModel;

    /**
     * 货物详情单价
     */
    @TableField(value = "shopping_order_cargo_details_price")
    @ApiModelProperty(value="货物详情单价",required = false,dataType = "BigDecimal")
    private BigDecimal shoppingOrderCargoDetailsPrice;

    /**
     * 货物详情数量
     */
    @TableField(value = "shopping_order_cargo_details_number")
    @ApiModelProperty(value="货物详情数量",required = false,dataType = "Integer")
    private Integer shoppingOrderCargoDetailsNumber;

    /**
     * 附属商品名称
     */
    @TableField(value = "shopping_order_accessory_goods_name")
    @ApiModelProperty(value="附属商品名称",required = false,dataType = "String")
    private String shoppingOrderAccessoryGoodsName;

    /**
     * 附属商品单价
     */
    @TableField(value = "shopping_order_accessory_goods_price")
    @ApiModelProperty(value="附属商品单价",required = false,dataType = "BigDecimal")
    private BigDecimal shoppingOrderAccessoryGoodsPrice;

    /**
     * 附属商品数量
     */
    @TableField(value = "shopping_order_accessory_goods_number")
    @ApiModelProperty(value="附属商品数量",required = false,dataType = "Integer")
    private Integer shoppingOrderAccessoryGoodsNumber;

    /**
     * 逻辑删除(0否、1是)
     */
    @TableField(value = "is_del")
    @ApiModelProperty(hidden = true)
    private Integer isDel;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    @ApiModelProperty(hidden = true)
    private Date createDate;

    /**
     * 修改时间
     */
    @TableField(value = "update_date")
    @ApiModelProperty(hidden = true)
    private Date updateDate;

    private static final long serialVersionUID = 1L;
}